package com.ayf.payment.game.api.entity;

import com.ayf.payment.game.api.entity.base.AutoIncBaseEntity;
import com.ayf.payment.game.api.type.Status;

import javax.persistence.Column;
import javax.persistence.Table;

@Table(name = "g_groups")
public class Groups extends AutoIncBaseEntity {
    private static final long serialVersionUID = 1L;
    /**
     * 商户id
     */
    @Column(name = "merchant_id")
    private Integer merchantId;

    /**
     * 分组名称
     */
    @Column(name = "group_name")
    private String groupName;

    /**
     * 状态：'PROHIBIT'禁用；'ENABLE'启用；默认'ENABLE'
     */
    @Column(name = "group_status")
    private Status groupStatus;

    /**
     * 获取商户id
     *
     * @return merchant_id - 商户id
     */
    public Integer getMerchantId() {
        return merchantId;
    }

    /**
     * 设置商户id
     *
     * @param merchantId 商户id
     */
    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    /**
     * 获取分组名称
     *
     * @return group_name - 分组名称
     */
    public String getGroupName() {
        return groupName;
    }

    /**
     * 设置分组名称
     *
     * @param groupName 分组名称
     */
    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    /**
     * 获取状态：'PROHIBIT'禁用；'ENABLE'启用；默认'ENABLE'
     *
     * @return group_status - 状态：'PROHIBIT'禁用；'ENABLE'启用；默认'ENABLE'
     */
    public Status getGroupStatus() {
        return groupStatus;
    }

    /**
     * 设置状态：'PROHIBIT'禁用；'ENABLE'启用；默认'ENABLE'
     *
     * @param groupStatus 状态：'PROHIBIT'禁用；'ENABLE'启用；默认'ENABLE'
     */
    public void setGroupStatus(Status groupStatus) {
        this.groupStatus = groupStatus;
    }
}